package com.zbf.config;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/17  17:28
 * 描述:
 */

@Configuration
@VoidScan
public class TestLunXun {

    @Autowired
    private IClientConfig iClientConfig;


    @Bean
    public IRule getLunXun(IClientConfig iClientConfig){
        return new RoundRobinRule();
    }

}
